package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.AnimalInformation;
import com.ruoyi.system.api.factory.RemoteAiExperimentFallbackFactory;
import com.ruoyi.system.api.factory.RemoteAnimalInfomationFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "remoteAnimalInfomationService", value = ServiceNameConstants.ANIMAL_SERVICE, fallbackFactory = RemoteAnimalInfomationFallbackFactory.class)
public interface RemoteAnimalInfomationService {

    @GetMapping("/information/list1")
    public List<AnimalInformation> list1(AnimalInformation animalInformation);

    @GetMapping(value = "/information/{animalId}")
    public AjaxResult getInfo(@PathVariable("animalId") Long animalId);
}
